package com.zzl.springboot_mybatis_demo.entity.book;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * description: 书籍实体类
 * @author 朱正磊
 * @date 2019-12-08 21:05:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {

    /**
     * 自增长主键
     */
    private Integer id;

    /**
     * 书名
     */
    private String bookName;

    /**
     * 总页数
     */
    private Integer pages;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
